﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace 家庭助手
{
    public partial class NewUser : Form
    {
        public NewUser()
        {
            InitializeComponent();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void NewUser_Load(object sender, EventArgs e)
        {
            Random R1 = new Random();
 
            int I1;
            //由系统生成一个随机数做为ID号
            do
            {
                double D1 = (1 + R1.NextDouble())*10000000;
                I1 = (int)D1;
            }while(false/*后台没有这个ID号*/);
            textBox1.Text = I1.ToString();
        }

        private void button2_Click(object sender, EventArgs e)
        {
             
        }





    }
}
